package com.love.netty.core.packet.request;

import com.love.netty.core.packet.Packet;
import lombok.Data;

import static com.love.netty.core.interfaces.Command.MESSAGE_REQUEST;

/**
 * @ClassName: MessageRequestPacket
 * @Description: 消息包
 * @Author: wuj
 * @Date: 2021-06-24 09:40
 **/
@Data
public class MessageRequestPacket extends Packet {

    private String toUserId;

    private String message;

    public MessageRequestPacket(String message,String toUserId) {
        this.message = message;
        this.toUserId = toUserId;
    }

    @Override
    public Byte getCommand() {
        return MESSAGE_REQUEST;
    }
}
